import "./utils/stateMap.js";
const height = document.documentElement.clientHeight;
const width = document.documentElement.clientWidth;
window.px = height / 1200;
const baseConfig = {
    height,
    width: (height * 1125) / 2436,
};
window.B = new Bump(PIXI);
import "./Record.js";
export async function init() {
    let type = "WebGL";
    if (!PIXI.utils.isWebGLSupported()) {
        type = "canvas";
    }

    PIXI.utils.sayHello(type);
    window.app = new PIXI.Application({
        ...baseConfig,
        resolution: 1,

        backgroundColor: 0x000000,
    });
    app.config = { ...baseConfig };
    app.start();
    app.stage.sortableChildren = true;
    document.body.append(app.view);
}
